package com.example.android.google;

import com.google.android.maps.*;

// Alarm location Object to store necessary variables
public class AlarmOverlayItem extends OverlayItem {
	int id; // primary key for db
	double range; // range in meters for alarm area
	boolean alarm; // whether or not alarm should go off
	String title; // title, no spaces, for identification

	// constructor
	public AlarmOverlayItem(int i, GeoPoint point, String t, double r,
			boolean am) {
		super(point, "", "");
		id = i;
		range = r;
		alarm = am;
		title = t;
	}

	// get id
	public int getID() {
		return id;
	}

	// get title
	public String getTitle() {
		return title;
	}

	// get range
	public double getRange() {
		return range;
	}

	// get alarm
	public boolean getAlarm() {
		return alarm;
	}

	// set title
	public void setTitle(String t) {
		title = t;
	}

	// set range
	public void setRange(double r) {
		range = r;
	}

	// set alarm
	public void setAlarm(boolean a) {
		alarm = a;
	}
}
